package com.dimao.certificate_build_service.Util.asyncReadFile;

import com.dimao.certificate_build_service.handle.Executor;
import com.dimao.certificate_build_service.handle.Handler;
import com.dimao.certificate_build_service.handle.ValueResult;
import io.vertx.core.Vertx;

public abstract class Reader<T> {
    private Vertx vertx;

    public Reader(Vertx vertx){
        this.vertx = vertx;
    }

    public abstract Executor<Handler<ValueResult<T>>> read(String file);

    Vertx getVertx() {
        return vertx;
    }
}
